package hw04.grammar.productions;

import hw04.grammar.terminals.Constant;
import hw04.grammar.terminals.Variable;

public class CopyOfAttr {

	private Object value;
	
	public CopyOfAttr(Constant c) {
		setValue(c);
	}
	
	public CopyOfAttr(Variable v) {
		setValue(v);
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}
	
	@Override
	public String toString() {
		return getClass().getSimpleName() + ":" + getValue();
	}
	
}
